Skip to content

检查子商户开票功能状态

服务商检查子商户的电子发票功能状态是否正常,若商户已经开通API开票功能并已对服务商授权,则返回成功。

请求参数类型描述
sub_mchidstring子商户号
php
$instance->v3->newTaxControlFapiao->merchant->_sub_mchid_->check->postAsync([
  'sub_mchid' => '1900000109',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance->chain('v3/new-tax-control-fapiao/merchant/{sub_mchid}/check')->postAsync([
  'sub_mchid' => '1900000109',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$instance['v3/new-tax-control-fapiao/merchant/{sub_mchid}/check']->postAsync([
  'sub_mchid' => '1900000109',
])
->then(static function(\Psr\Http\Message\ResponseInterface $response) {
  print_r($response->getStatusCode() === 204);
})
->wait();
php
$response = $instance->v3->newTaxControlFapiao->merchant->_sub_mchid_->check->post([
  'sub_mchid' => '1900000109',
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance->chain('v3/new-tax-control-fapiao/merchant/{sub_mchid}/check')->post([
  'sub_mchid' => '1900000109',
]);
print_r($response->getStatusCode() === 204);
php
$response = $instance['v3/new-tax-control-fapiao/merchant/{sub_mchid}/check']->post([
  'sub_mchid' => '1900000109',
]);
print_r($response->getStatusCode() === 204);
返回字典类型描述
空字符串(无返回内容)

参阅 官方文档

Published on the GitHub by TheNorthMemory